﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Code.Models;

namespace Company.Web.Models.NewsModels
{
    public class IndexModel
    {
        public Language L { get; set; }
        public int? A { get; set; }
        public int? B { get; set; }
        public int SumCount { get; set; }
        public IEnumerable<NewItem> News { get; set; }
    }

    public class DetailModel
    {
        public Language L { get; set; }
        public NewItem New { get; set; }
    }

    public class NewItem
    {
        public long ID { get; set; }
        public string Title { get; set; }
        public string Content { get; set; }
        public DateTime AddTime { get; set; }
        public Language Language { get; set; }
        public NewState State { get; set; }
        public bool Highlight { get; set; }
        public int ClickCount { get; set; }
    }
}